package org.stars.dao.sqlmapper.macro;


import org.stars.dao.sqlmapper.SqlDefinition;
import org.stars.dao.sqlmapper.SqlMacro;
import org.stars.dao.sqlmapper.SqlMapper;

import static org.stars.config.Message.MACRO_ERROR;

@MacroDefinition(body=MacroParam.OPTIONAL, evaluation=MacroEvaluation.RUNTIME)
public class Error extends MacroBase  {
	@Override
	public ReturnState execute(SqlMapper sqlMapper, SqlDefinition sqlQuery, SqlMacro sqlMacro) throws Exception {
		throw(new Exception(MACRO_ERROR.toString()));
	}
	 
}
